﻿<%@ Page Title="" Language="C#" MasterPageFile="~/edit/Admin.Master" AutoEventWireup="true" CodeBehind="ArticleEdit.aspx.cs" Inherits="ChgDoc.Edit.ArticleEdit" %>

<asp:Content ContentPlaceHolderID="head" runat="server">
<style type="text/css">
	body { font-size: 62.5%; }
		
	#create-uset { display: block; }
	input.text { margin-bottom:12px; width:95%; padding: .4em; }
	h1 { font-size: 1.2em; margin: .6em 0; }
	div#users-contain { width: 350px; margin: 20px 0; }
	div#users-contain table { margin: 1em 0; border-collapse: collapse; width: 100%; }
	div#users-contain table td, div#users-contain table th { border: 1px solid #eee; padding: .6em 10px; text-align: left; }
	.ui-dialog .ui-state-error { padding: .3em; }
	.validateTips { border: 1px solid transparent; padding: 0.3em; }
	.addbox { padding: 5px; } 
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="pageContent" runat="server">
<script type="text/javascript" src="../script/articleedit.js" ></script>
<script type="text/javascript" src="../script/catchTab.js" ></script>
<asp:Literal ID="litScript" runat="server" />    
<script type="text/javascript" src="../script/edittextdialog.js"></script>



<asp:literal id="litErrors" runat="server" />
<table cellspacing="0" cellpadding="0" border=0 width="100%" height="100%" style="border-left: 1px solid #999; border-top:1px solid #999;">
    <tr class="gray" >
        <td >
           <div style="padding:5px;">
           Title <asp:textbox id="txtTitle" runat="server" style="width:400px;"/>  
           
            </div>
        </td>
        <td align="right">
            <button id="editDetails" >Details</button>
            <asp:button id="btnSave"  runat="server" text="Save" onclick="btnSave_click" Style="margin-right:10px;" class="ui-state-default" />              
        </td>
    </tr>
    <tr>
        <td colspan="2" height="100%" valign="top">
           	<asp:textbox id="txtBody" runat="server" textmode="multiline" rows="2" style="width:99%; height:100%" CssClass="catchTab" />
        </td>
    </tr>
</table>


<div id="dialog-form" title="Article details">
	<fieldset>
		
        <div class="group">
            <h5>URL</h5>
            <ul id="articleUrlList" class="floatlist">
                <li>a</li>
            </ul> 
            <div class="addbox" style="clear:both">
                Url: <input type="text" id="articleUrl" />
                Template: <asp:DropDownList ID="drpTemplate" runat="server" />
                <button onclick="article.addUrl()">Add</button>
            </div>
        </div>

        <div class="group">
            <h5>Tags</h5>        
            <ul id="articleTag" class="floatlist">
                <li>a</li>
            </ul> 
            <div class="addTagCtrl addbox">
                <asp:DropDownList id="drpTag" runat="server" AutoPostBack=false /><button id="dialog-add-tag" onclick="article.addTag()">Add</button>
            </div>
            <div style="clear:both;"></div>
        </div>

        <div class="group">
            <h5>Locations</h5>
            <ul id="articleLocation" class="floatlist">
            <li>a</li>
            </ul> 
            <div class="addLocationCtrl addbox">
                <asp:DropDownList id="drpLocation" runat="server" AutoPostBack=false /><button id="dialog-add-location" onclick="article.addLocation()">Add</button>
            </div>
            <div style="clear:both;"></div>
        </div>

        <div class="group">
            <h5>Attributes</h5>
            <ul id="articleAttribute" class="floatlist"></ul>
            <div class="addAttribute addbox">
                <asp:DropDownList ID="drpListAttributes" runat="server" AutoPostBack="false" />
                <input type="text" id="attributeValue" />
                <button id="dialog-add-attribute" onclick="article.addAttribute(); return false;">Add</button>
            </div>
        </div>
	</fieldset>
</div>

</asp:Content>
